<#assign module="driver"/>

<@override name="header">
    <link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
    <link rel="stylesheet" href="${ctx}/assets/css/bootstrap-multiselect.css">
    <style>
        .input-query-multiple {
            min-width: 300px;
            padding: 0px 0px;
            height: auto;
            margin-top: 20px;
        }
    </style>
</@override>
<@override name="body">
    <div class="tabbable tabs-left">
        <div class="row">
            <div class="col-xs-12 col-md-10">
                <div class="orders-navt">
                    <ul class="orders-nav">
                        <@shiro.hasPermission name='servicePersonal'>
                            <li style="width:90px;"><a href="${ctx}/driver/list">服务人员</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='driverapply'>
                            <li><a href="${ctx}/driverapply/list">申请</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='callLog'>
                            <li style="width:90px;"><a href="${ctx}/driver/recordlist">通话记录</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='notice'>
                            <li><a href="${ctx}/notice/list">通知</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='announcement'>
                            <li style="width:90px;" class="orders-click"><a href="${ctx}/driver/announcementList">公告</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='drivermoney'>
                            <li style="width:90px;"><a href="${ctx}/driver/drivermoney">批量操作</a></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name='drivermoney' >
                            <li style="width:110px;"><a href="${ctx}/driver/driverReward">服务人员奖励</a></li>
                        </@shiro.hasPermission>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="tab-content margin-top">
        <div class="container-fluid" style="border:none;">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            服务人员公告
                        </div>
                        <div class="panel-body">
                            <form id="submit_form" class="form-horizontal" method="post">
                                <@shiro.isMainCompany>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">所属公司：</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" type="text" readOnly
                                                   value="${announcement.companyName}"/>
                                        </div>
                                    </div>
                                </@shiro.isMainCompany>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">公告标题：</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" type="text" readOnly value="${announcement.title}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">公告内容：</label>
                                    <div class="col-sm-8">
                                        <textarea class="form-control" id="contentLook"
                                                  rows="12">${announcement.content}</textarea>
                                    </div>
                                </div>
                                <div class="form-group" style="margin-left:10px;">
                                    <label class="col-sm-3 control-label"></label>
                                    <input type="button" class="btn btn-default"
                                           onclick="window.location.href = '${ctx}/driver/announcementList';"
                                           value="返回">
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</@override>
<@override name="footer">
    <script src="${ctx}/assets/kindeditor/kindeditor-all-min.js"></script>
    <script src="${ctx}/assets/kindeditor/lang/zh_CN.js"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editer = K.create('#contentLook', {
                filterMode: false,
                uploadJson: ctx + '/common/kindeditor/fileupload',
                allowUpload: true,
                fileManagerJson: ctx + '/common/kindeditor/filemanager',
                allowFileManager: true,
                height: 400,
                width: '100%',
                resizeType: 0,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                    });
                },
                afterBlur: function () {
                    this.sync();
                }
            });
            editer.readonly(true);
        });
    </script>
</@override>
<@extends name="../layout.ftl"/>